% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FIPS_FUNCTIONS.R
\name{fips_from_table}
\alias{fips_from_table}
\title{FIPS - Read and clean FIPS column from a table, after inferring which col it is}
\usage{
fips_from_table(fips_table, addleadzeroes = TRUE, inshiny = FALSE)
}
\arguments{
\item{fips_table}{data.frame or data.table of FIPS codes for counties, states, or tracts,
for example, in a column whose name can be interpreted as FIPS
(is one of the aliases like fips, countyfips, etc.)
Aliases are: c("FIPS", "fips", "fips_code", "fipscode", "Fips", "statefips",
"countyfips", "ST_FIPS", "st_fips", "ST_FIPS", "st_fips", "FIPS.ST",
"FIPS.COUNTY", "FIPS.TRACT")}

\item{addleadzeroes}{whether to add leading zeroes where needed as for a State whose FIPS starts with "01"}

\item{inshiny}{used by server during shiny app}
}
\value{
vector of fips codes
}
\description{
Just read the codes in one column of a table obtained from something like read.csv, or excel, etc.
}
\examples{
 fips_from_table( data.frame(countyfips=0, FIPS=1, bgfips=2, other=3, fips=4))

}
\seealso{
\code{\link[=fips_bgs_in_fips]{fips_bgs_in_fips()}} \code{\link[=fips_lead_zero]{fips_lead_zero()}} \code{\link[=getblocksnearby_from_fips]{getblocksnearby_from_fips()}} \code{\link[=fips_from_table]{fips_from_table()}}
}
